require 'middleclass'
require 'Display'

PlatformTrans = class('PlatformTrans', Display)

function PlatformTrans:initialize(imageSheet,sheet,x, y, sizex, sizey, rotation)
    local block = display.newImageRect(imageSheet,sheet, sizex, sizey)
    block.x = x
    block.y = y
    block.rotation = rotation
    Display.initialize(self, block) 
    physics.addBody(self.body, "static", { density = 0.8, friction = 0.2, bounce = 0.0})
end

